import { http } from "@/utils/http";

export const storageService = {
	// 扫描获取主单号 出库
	scanBox: (params) => {
		return http.post("/app-api/tms/logistics/scanBoxNumberOut", params);
	},
	// 扫描获取主单号 入库
	scanBoxIn: (params) => {
		return http.post("/app-api/tms/logistics/scanBoxNumberIn", params);
	},
	// 出库装车
	confirmOut: (params) => {
		return http.post("/app-api/tms/logistics/confirmOut", params);
	},
	// 确认入库
	confirmIn: (params) => {
		return http.put("/app-api/tms/logistics/confirmIn", params);
	},
	// 获取车单
	getCarList: (params) => {
		return http.get("/app-api/tms/logistics/list", params);
	},
	// 获取车单 全部 分页
	getAllCarList: (params) => {
		return http.get("/app-api/tms/logistics/page", params);
	},
	// 获取车单详情
	getCardDetail: (id) => {
		return http.get(`/app-api/tms/logistics/get?id=${id}`);
	},
	// 编辑车单信息
	updateCard: (params) => {
		return http.put("/app-api/tms/logistics/update", params);
	},
	// 出货
	deliveryPackage: (params) => {
		return http.post("/app-api/tms/logistics/deliveryPackage", params);
	},
};
